package org.fly.service;

import org.fly.bean.User;
import org.fly.bean.common.BusinessException;

/**
 * @author fly
 */
public interface UserService {
    User login(String account,String password )throws BusinessException;

    void logout(String token);

    void save(User bean);

    void updatePassword(String id,String oldPassword,String newPassword)throws BusinessException;

    User getUserByToken(String token);
}
